package com.meila.design.mode.state;

/**
 * ***********************************************************
 *
 * @类名 : cms {XXX.java}
 * @DESCRIPTION : ===========XXXX==================
 * @AUTHOR :  meila-x->reese
 * @DATE : 2016/3/2
 * ***********************************************************
 */
public class Client {
    public static void main(String[] args) {
        Person person1 = new Person(new CState(),6);
        Person person2 = new Person(new AState(),12);
        Person person3 = new Person(new AState(),18);
        person1.doSomeThing();
        person2.doSomeThing();
        person3.doSomeThing();
    }
}
